@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900&display=swap');
*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: auto;
    /* 
    这是css新增了一批能够控制滚动的属性，不仅能够通过css的控制下，得到很多原本需要js脚本介入才能
    实现的美好交互
     */
    scroll-snap-type: y mandatory;
}
.container .section{
    position: relative;
    width: 100%;
    height: 100%;
    background-blend-mode: multiply;
}
.container .section:nth-child(1){
    background: #f00 url(./温顺绵羊.jpg);
    background-repeat: no-repeat;
    background-size: cover ;
    background-attachment: fixed;
}
.container .section:nth-child(2){
    background: #0f0 url(./秋意正浓.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;

}
.container .section:nth-child(3){
    background: #ff0 url(./绿色深林.jpg);
    background-repeat: no-repeat;
    background-size: cover ;
    background-attachment: fixed;

}
.container .section:nth-child(4){
    background: #0ff url(./静谧星空.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover ;
}
.container .section:nth-child(5){
    background: #00f url(./绿色深林.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover ;
}
.container .section .content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    max-width: 700px;
}
.container .section .content h2 {
    background: #fff;
    color: #111;
    font-weight: 600;
    display: inline-block;
    padding: 10px 20px;
    font-size: 2em;
}
.container .section .content p {
    background: #fff;
    color: #111;
    font-weight: 600;
    display: inline-block;
    padding: 10px 20px;
    margin-top : 10px;
}